package com.lei.zktwo.mvp.contract;

import com.lei.mvptwozk.mvp.model.IModel;
import com.lei.mvptwozk.mvp.presenter.IPresenter;
import com.lei.mvptwozk.mvp.view.IView;

import java.util.HashMap;

import io.reactivex.Observable;

public interface LoginContract {
    interface Model extends IModel {
        Observable appkey(HashMap<String,String> map);
        Observable login(HashMap<String,String> map);
        Observable register(HashMap<String,String> map);
    }

    interface AppKeyView extends IView {
        String getname();
        String getpasswd();
        String getemail();
        void gomain(String json);
    }

    interface LoginView extends IView {
        String getkey();
        String getname();
        String getpasswd();
        void gomain(String json);
    }

    interface RegisterView extends IView {
        String getkey();
        String getname();
        String getpasswd();
        void gomain(String json);
    }

    interface Presenter extends IPresenter {
        void Appkey();
        void login();
        void register();
    }
}
